<!--
@name:dialogPreView
@author:Zhenglei
@date:16:26
@description:dialogPreView
@update:2022/8/1216:26
-->
<template>
  <el-dialog title="健康建议"
             :visible.sync="visible"
             :before-close="modalClose"
             width="60%">
    <p v-html="content"></p>
    <p align="center" style="margin-top: 20px">
      <el-button @click="modalClose"
                 type="info">返 回
      </el-button>
    </p>

  </el-dialog>
</template>

<script>
export default {
  name: "dialogPreView",
  props: {
    content: {
      type: String,
      default: ''
    },
    visible: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {}
  },
  created() {
  },
  methods: {
    modalClose() {
      this.$emit('update:visible', false);
    },
  },
}
</script>

<style scoped>

</style>
